package days3.easy.title9;

/**
 * @Author fengzihao
 * @Date 2024-04-17 20:02
 */
class Solution {
    public boolean isPalindrome(int x) {
        String s = x+"";
        StringBuffer sc = new StringBuffer(s);
        sc.reverse();
        return s.equals(sc.toString());
    }
}
